package models.common.user;

/**
 * Property & Copyright 2013 Nokia Siemens Networks.
 */

import java.io.Serializable;
import java.util.Set;
import java.util.HashSet;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import play.db.jpa.Model;


@Entity
@Table(name="das_group")
public class DASUserGroup extends Model {

	public String name;
	
	@ManyToMany(fetch=FetchType.LAZY)
	public Set<DASUserRole> roles;
	
	public Set<DASUserRole> getDASUserRole(){
		return this.roles;
	}
	
}